if (!(Modernizr.canvas && Modernizr.video)) {
    window.location.replace("../nosupport.php");
}